using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Shield:MonoBehaviour {

	SpriteRenderer parent;

	private void Start() {
		parent=transform.parent.GetComponent<SpriteRenderer>();
	}

	private void Update() {
		if(parent.flipX) transform.localScale=new Vector3(-1,1,1);
		else transform.localScale=new Vector3(1,1,1);
	}

}
